// Promise
const promise = new Promise(function (resolve, reject) {
  // resolve(100)

  reject(new Error('promise rejectd'))
})

promise.then(function (value) {
  console.log('resolve', value)
}, function (error) {
  console.log('rejected', error)
})

console.log('end:::::')